.alert-plugin {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 101;
  display: none;

  &.visible {
    display: block;
  }

  .mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .25;
  }

  .alert {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 20px;
    margin: -170px 0 0 -245px;
    width: 450px;
    min-height: 300px;
    background: #fff;

    .header {
      padding-bottom: 12px;
      font-size: 22px;
      line-height: 34px;
      border-bottom: 3px solid #3A78EA;
      overflow: hidden;

      .close {
        float: right;
        cursor: pointer;
      }
    }



    .main {
      padding: 10px 60px 10px 78px;
      font-size: 18px;
      line-height: 28px;
      width: 100%;
      box-sizing: border-box;

      &.cropper {
        padding: 20px 0 10px;
      }

      .cropper-box {
        width: 100%;
        height: 300px;
        overflow: hidden;

        .cropper-preview {
          width: 120px;
          height: 120px;
          float: right;
          overflow: hidden;
        }
      }

      .message {
        margin: 20px 0;
      }

      p {
        margin-top: 10px;
      }
    }

    .form {
      .item {
        margin-bottom: 30px;

        &:last-child {
          margin-bottom: 0;
        }

        label {
          line-height: 50px;
          display: inline-block;
          width: 126px;
          text-align: right;
          font-size: 18px;
          color: #333333;
          position: relative;
          vertical-align: top;
          padding-right: 30px;
        }

        .right {
          display: inline-block;

          span {
            display: inline-block;
            line-height: 50px;
          }

          input[type='text'] {
            width: 230px;
            height: 50px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            text-indent: 20px;
            font-size: 14px;
            line-height: 20px;
          }

          .tip {
            font-size: 14px;
            line-height: 20px;
            color: #aaaaaa;
          }
        }
      }
    }

    .footer {
      font-size: 16px;
      position: absolute;
      padding: 49px 20px 0;
      box-sizing: border-box;
      text-align: center;
      bottom: 53px;
      left: 50%;
      margin-left: -137px;

      &.cropper-footer {
        position: static;
        padding: 0;
        margin-left: 90px;
      }

      .submit,
      .cancel {
        cursor: pointer;
        height: 50px;
        line-height: 50px;
        border-radius: 4px;
        box-sizing: border-box;
        text-align: center;
        font-size: 16px;
      }

      .submit {
        width: 128px;
        background: rgba(58, 120, 234, 1);
        color: rgba(255, 255, 255, 1);
      }

      .cancel {
        margin-left: 60px;
        width: 86px;
        border: 1px solid rgba(221, 221, 221, 1);
        color: rgba(102, 102, 102, 1);
      }
    }
  }

  &.edit-photo {
    .alert {
      margin: 0 0 0 -245px;
      transform: translateY(-50%);
      width: 490px;
    }
  }

  &.edit-name {
    .alert {
      height: 350px;
      margin: -170px 0 0 -245px;
    }

    .main {
      padding: 0;
    }
  }

  &.edit-password {
    .alert {
      width: 490px;
      height: 480px;
      margin: -240px 0 0 -245px;
    }

    .main {
      padding: 0;
      margin-top: 30px;
    }
  }
}